package Practice1;

public class Ladder {
    private double above;
    private double bottom;
    private double height;
    public Ladder() {

    }
    public Ladder(double above,double bottom,double height) {
        this.above = above;
        this.bottom = bottom;
        this.height = height;
    }
    public double getArea() {
        return (above+bottom)*height/2;
    }
}